package com.example.qxfw.dzzh.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.example.qxfw.common.entity.CountryPoint;
import com.example.qxfw.dzzh.mapper.CountryPointMapper;
import com.example.qxfw.dzzh.service.CountryPointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CountryPointServiceImpl implements CountryPointService {

    @Autowired
    private CountryPointMapper countryPointMapper;

    @Override
    public List<CountryPoint> list() {
        return countryPointMapper.selectList(Wrappers.<CountryPoint>query().select("id","name"));
    }
}
